<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>修改 html 元素内容</title>
</head>
<body>
<!--快捷输入：div#change.change<Tab> -->
<div id="change" class="change">
    <h1></h1>
</div>
</body>
<script>
let element = document.querySelector("#change > h1")
console.log(element);

element.textContent = "Hello, World!"
</script>
</html>